const reg = /^[]$/;

console.log(reg.test('123'));
